package com.download.web.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * <p>
 * 
 * </p>
 *
 * @author cmy
 * @since 2019-02-20
 */
@Data

public class SysUser{

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    @NotBlank(message = "请填写用户名")
    private String userName;

    private String name;
    @Pattern(regexp = "^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\\.[a-zA-Z0-9-]+)*\\.[a-zA-Z0-9]{2,6}$",message = "请填写正确的邮箱地址")
    @NotBlank(message = "请填写邮箱")
    private String email;

    private String isVip;
    private Integer state;
    @NotBlank(message = "请输入密码")
    private String pwd;


    private String headImg;
}
